package com.sm.timer;

import com.sm.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.ejb.Schedule;


/**
 * 订单任务
 *
 * @author wangpengliang
 * Date 2020/5/28 8:19 下午
 * Copyright (C) www.lovesfang.com
 */
public class OrderTask {
    @Autowired
    private OrderService orderService;

    /**
     * 取消订单
     */
    public void cancelOrder() {
        orderService.timingCancelOrder();
    }

    /**
     * 确认收货
     */
    public void confirmOrder() {
        orderService.timingConfirmOrder();
    }
}
